import React, { Component } from 'react';

// 功能组件
class Cmp1 extends Component {
  render() {
    return (
      <div>
        {
        this.props.children.replace(/x/ig,'*')
        }
      </div>
    );
  }
}

export default Cmp1;
